package com.diandi.activity.config.shiro;


import java.io.Serializable;

public class ShiroUser implements Serializable {

    public ShiroUser(long id, String email, String name, long roleId, String roleName) {
        this.id = id;
        this.loginName = email;
        this.name = name;
        this.roleName = roleName;
        this.roleId = roleId;
    }

    private Long id;

    private String userName;
    /**
     * 手机号
     */
    private String mobilePhone;
    /**
     * 邮箱
     */
    private String email;

    private Integer isEnable;

    private Integer userType;

    private int accountType;

    /**
     * 登录次数
     */
    private Integer loginCount;

    /**
     * 是否为超级用户
     */
    private Integer superUser;

    /**
     * userInfo id
     */
    private Long userInfoId;

    /**
     * 用户资产id
     */
    private Long userFundId;

    /**
     * 手机是否验证
     */
    private Integer mobileStatus;

    /**
     * 邮箱是否验证
     */
    private Integer emailStatus;

    /**
     * 真实姓名
     */
    private String realName;

    private String sourceUserId;

    public String loginName;

    public String name;

    public String roleName;

    public long roleId;

    @Override
    public String toString() {
        return loginName;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public int getAccountType() {
        return accountType;
    }

    public void setAccountType(int accountType) {
        this.accountType = accountType;
    }

    public Integer getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(Integer loginCount) {
        this.loginCount = loginCount;
    }

    public Integer getSuperUser() {
        return superUser;
    }

    public void setSuperUser(Integer superUser) {
        this.superUser = superUser;
    }

    public Long getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(Long userInfoId) {
        this.userInfoId = userInfoId;
    }

    public Long getUserFundId() {
        return userFundId;
    }

    public void setUserFundId(Long userFundId) {
        this.userFundId = userFundId;
    }

    public Integer getMobileStatus() {
        return mobileStatus;
    }

    public void setMobileStatus(Integer mobileStatus) {
        this.mobileStatus = mobileStatus;
    }

    public Integer getEmailStatus() {
        return emailStatus;
    }

    public void setEmailStatus(Integer emailStatus) {
        this.emailStatus = emailStatus;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getSourceUserId() {
        return sourceUserId;
    }

    public void setSourceUserId(String sourceUserId) {
        this.sourceUserId = sourceUserId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }
}
